package com.hehui.module.customer.service;


import com.hehui.module.customer.entity.CustomerType;


import java.util.List;
/*
 * @客户类型接口
 * @param null:
 * @author: why
 * @date: 2021/1/6 22:27
 * @description:
 */
public interface ICustomerTypeService {
    //查询
    public List<CustomerType> selectCustomerType(CustomerType customerType);
    //添加用户分组
    public int insertCustomerType(CustomerType customerType);
    //删除用户分组
    public int deleteCustomerTypeById(Long customerTypeId);
    //判断该用户类型下有没有用户
    public  boolean checkHasCustomerByTypeId(Long customerTypeId);
   //根据主键查询
    public CustomerType selectByPrimaryKey(Long customerTypeId);
    //校验商户下类型名的唯一性
    public boolean checkCustomerTypeNameUnique(String typeName ,Long merchantId);
    //修改类型
    public int updateByPrimaryKeySelective(CustomerType record);
    //生成一个新的编号
    public String createNewNum(Long merchantId);
    //校验编号的唯一性
    public boolean checkCustomerTypeNumUnique(String typeNum,Long merchantId);
}
